<?php
return
    [
        /*[
            'class' => 'yii\rest\UrlRule',
            'controller' => ['v1/goods']
        ],*/
        'GET goods'                                            => 'v1/goods/index',
        'GET goods/add'                                        => 'v1/goods/add',
        'GET test/curl_info/<ip:.*>'                           => 'test/curl_info',
        'POST login'                                           => 'login/index',
        'POST register'                                        => 'login/register',
        'POST send'                                            => 'login/send',
        'POST forget-password'                                 => 'login/forget-password',
        'GET get_user_info'                                    => 'user/index',
        'GET user/reset-password/<user_id:\d+>'                => 'user/reset-password',
        'POST user/change-password'                            => 'user/change-password',
        'POST user/add'                                        => 'user/add-user',
        'POST user/edit'                                       => 'user/edit-user',
        'GET refresh/<token:.*>'                               => 'login/refresh',
        'GET all_info'                                         => 'equipment/all_info',
        'GET item_info/<ip:.*>'                                => 'equipment/item_info',
        'GET process_info/<ip:.*>'                             => 'equipment/process_info',
        'POST devices_process'                                 => 'equipment/devices_process',
        'GET line'                                             => 'equipment/line',
        'POST line_add'                                        => 'equipment/line_add',
        'GET station'                                          => 'equipment/station',
        'GET station/<line_id:\d+>'                            => 'equipment/station',
        'POST station_add'                                     => 'equipment/station_add',
        'GET lane'                                             => 'equipment/lane',
        'GET lane/<station_id:\d+>'                            => 'equipment/lane',
        'POST lane_add'                                        => 'equipment/lane_add',
        'POST computer_add'                                    => 'equipment/computer_add',
        'POST computer_edit'                                   => 'equipment/computer_edit',
        'GET computer/delete/<id:.*>'                          => 'equipment/computer_delete',
        'GET computer'                                         => 'equipment/computer',
        'GET computer/<type:\d+>/<id:\d+>'                     => 'equipment/computer',//type1 线路id 2站点id
        'GET devices'                                          => 'equipment/devices',
        'GET lane_devices'                                     => 'login/lane_devices',
        'POST control'                                         => 'equipment/control',
        'GET query_log'                                        => 'log/query-log',
        'POST query_runtime'                                   => 'log/query-runtime',
        'POST remote_login_log'                                => 'log/telnet-log',
        'GET control_type/<ip:.*>/<type:\d+>/<index:\d+>/<operation:.*>'  => 'equipment/control_type',


    ];
